package org.training.apr.model.utils.builder;

import org.training.apr.model.Vat;

public class VatBuilder extends Builder {
	private String description = "Vat #" + id;
	private float tax = 20;
	
	public VatBuilder withDescription(String description) {
		this.description = description;
		return this;
	}
	
	public VatBuilder withTax(float tax) {
		this.tax = tax;
		return this;
	}

	public Vat build() {
		Vat vat = new Vat();
		
		vat.setId(id);
		vat.setDescription(description);
		vat.setTax(tax);
		
		return vat;
	}
}
